import service from "@/server/serviceIndex";

// 获取最后一条协议
export const getLastAgreementApi=(userId)=>{
return service({
    method:"POST",
    url:"/pipayshopapi/futurePi/getLastAgreement?userId="+userId
})
};
//获取有效流水
export const getRecordApi=(userId)=>{
return service({
    method:"POST",
    url:"/pipayshopapi/futurePi/getRecord?userId="+userId
})
};
//创建协议
export const addProtocolApi=(info)=>{
    return service({
        method:"POSt",
        url:"/pipayshopapi/futurePi/addprotocols",
        data:info
    })
};

//修改协议状态
export const modifyProtocolStatusAPI=(info)=>{
return service({
    method:"POST",
    url:"/pipayshopapi/futurePi/modifyStatus",
    data:info
})
};
//获取协议
export const listFuturePiApi =(searchCondition)=>{
    return service({
        method:"POST",
        url:"/pipayshopapi/futurePi/listFuturePi",
        data:searchCondition
    })

}

